﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate;
using NHibernateDown2Earth.Core.Interfaces;

namespace NHibernateDown2Earth.Core
{
	public class RepositoryBase<T>: IRepository<T>
	{
		private ISession _session;
		
		public RepositoryBase(ISession session)
		{
			_session = session;
		}

		public void Save(T entity)
		{
			_session.Save(entity);
		}

		public void Delete(T entity)
		{
			_session.Delete(entity);
		}

		public IList<T> FindAll()
		{
			throw new NotImplementedException();
		}
	}
}
